﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Runtime.CompilerServices;
using Microsoft.Scripting.Runtime;

namespace Cjc.ExpressionEngine.Excel.Runtime.Operations
{
	public static class DoubleOps
	{
		[ImplicitConversionMethod]
		public static decimal ConvertToDecimal( double x ) { return (decimal)x; }
		[ImplicitConversionMethod]
		public static string ConvertToString( int x ) { return x.ToString(); }

		[SpecialName]
		public static object Add( double x, double y ) { return DecimalOps.Add( (decimal)x, (decimal)y ); }
		[SpecialName]
		public static object Subtract( double x, double y ) { return DecimalOps.Subtract( (decimal)x, (decimal)y ); }
		[SpecialName]
		public static object Multiply( double x, double y ) { return DecimalOps.Multiply( (decimal)x, (decimal)y ); }
		[SpecialName]
		public static object Divide( double x, double y ) { return DecimalOps.Divide( (decimal)x, (decimal)y ); }
	}
}